import { dialog, ipcMain } from 'electron'

export const initToast = () => {
  ipcMain.handle('toast', (_, title: string, content: string) => {
    dialog.showErrorBox(title, content)
  })
}
